#ifndef LOGDISPLAY_H
#define LOGDISPLAY_H
#include <QxtLoggerEngine>
#include <QPlainTextEdit>
#include "Timer.hpp"
class LogDisplay : public QxtLoggerEngine
{
public:
    LogDisplay();
    void initLoggerEngine();
    void killLoggerEngine();
    bool isInitialized() const {return initd;}
    void writeFormatted(QxtLogger::LogLevel level, const QList<QVariant>& messages);

private:
    QPlainTextEdit *widget;
    bool initd;
    Timer time;
};

#endif // LOGDISPLAY_H
